//
//  FamousListCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/8/12.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "FamousListCell.h"
#import "OpusListModel.h"
@implementation FamousListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView *imgView = [[UIImageView alloc] init];
        imgView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:imgView];
        [imgView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(10));
            make.size.mas_equalTo(CGSizeMake(25, 25));
        }];
        _titlelabel = [[UILabel alloc] init];
        [self.contentView addSubview:_titlelabel];
        [_titlelabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(imgView.mas_right).offset(scaleLeftAndRight(5));
            make.right.top.bottom.equalTo(self.contentView);
        }];
    }
    return self;
}


-(void)setModel:(OpusListModel *)model{
    _model = model;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
